package com.cl.edu.dao;


import java.util.List;

import org.springframework.stereotype.Repository;

import com.cl.core.orm.hibernate.HibernateDao;
import com.cl.edu.entity.Status;

@Repository
public class StatusDAO extends HibernateDao<Status, Long>{
	public List<Status> getListByStatus(Long status) {
		StringBuffer hql = new StringBuffer("from Status model ");
		if(status!=0){
			hql.append(" where model.status = ").append(status);
		}
		return this.find(hql.toString());
	}
}
